<%-- 
    Document   : searchProcess
    Created on : May 16, 2014, 9:46:45 PM
    Author     : krisada
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Process Page</title>
        <script src="../js/jquery-1.11.1.min.js"></script>
    </head>
    <body>
        <H2>Process Management</H2>
        <form id="pform" name="pform" action="processInit.htm">
        <br/>
        <input type="text" name="processName" /><button type="submit" name="bSearch">Search</button><button type="submit" name="bAdd" formaction="processEntry.htm">Add</button>
        <br/>
        <table style="border-width: thin; border-style: groove">
            <tr>
                <th>Process ID</th>
                <th>Name</th>
                <th>Description</th>
                <th>&nbsp;</th>
                <th>&nbsp;</th>
            </tr>
            
                <c:forEach items="${processes}" var="item">
                    <tr>
                        <td>${item.processId}</td>
                        <td>${item.name}</td>
                        <td>${item.description}</td>
                        <td><a href="findProcess.htm?id=${item.id}"><img src="${pageContext.request.servletContext.contextPath}/imgs/edit.png"/></a></td>
                        <td><a href="javascript:void(0)" onClick=""><img src="${pageContext.request.servletContext.contextPath}/imgs/delete.png"/></a></td>
                    </tr>
                </c:forEach>
            
        </table>
        </form>
    </body>
</html>
